function TOAPPID(e){
  if (e.currentTarget.dataset.appid){
    wx.navigateToMiniProgram({
      appId: e.currentTarget.dataset.appid,
      path: e.currentTarget.dataset.url
    });
  }else{
    wx.setStorageSync('advurl', e.currentTarget.dataset.url);
    wx.navigateTo({
      url: '../webview/webview',
    });
  }
}

module.exports = TOAPPID;